package com.softeem.map;

public class User implements Comparable<User>{

	private int age;

	public User(int age) {
		super();
		this.age = age;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public int compareTo(User u) {
		
		return this.age - u.getAge();
	}
	
}
